/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simhya.matheval.operator;

/**
 *
 * @author Luca
 */
public class Minus  extends OperatorDefinition {

    public Minus() {
        super("-");
    }

    public double compute(double x) {
        return -x;
    }
    public double compute(double x, double y) {
        return x-y;
    }

}